f = open("../test.txt", "w", encoding="UTF-8")
f.write("love")
f.flush()

f = open("../test.txt", "r", encoding="UTF-8")
for line in f:
    print(line)

f = open("../test.txt", "a", encoding="UTF-8")
f.write("\nme and you")
f.flush()

f = open("../test.txt", "r", encoding="UTF-8")
for line in f:
    print(line)